Skip to main content

mobileDeviceOrientation

Type

function

Summary

Returns the current device orientation.

Syntax

mobileDeviceOrientation()

Description

Use the mobileDeviceOrientation function to find the current device orientation.

The mobileDeviceOrientation function returns the current orientation of the device.

note

Due to the limitation of the Android operating system, landscape left and portrait upside-down are only supported on Android 2.3 and later.

note

The iPhone X model doesn’t currently support upside-down portrait mode. Other Apple iPad and iPhone devices continue to support both standard and upside-down portait and landscape orientations.

Examples

put mobileDeviceOrientation() into theOrientation

command: mobileSetAllowedOrientations, mobileLockOrientation, mobileUnlockOrientation

function: mobileAllowedOrientations, mobileOrientation

message: orientationChanged

Compatibility and Support

Introduced

LiveCode 4.5.2

OS

ios

android

Platforms

mobile

Thank you for your feedback!

Was this page helpful?